package org.zxp.javacheck.InnerClass.memberinnerclass;

/**
 * @program: effectiveJava
 * @description:测试成员内部类
 * @author: X-Pacific zhang
 * @create: 2019-08-21 11:46
 **/
public class Test {
    public static void main(String[] args){
        MemberInnerClass memberInnerClass = new MemberInnerClass();
        //类外部访问成员内部类的方式
        MemberInnerClass.Inner inner = memberInnerClass.getInnerInstance();
        inner.show();
        MemberInnerClass.Inner inner2 = memberInnerClass.new Inner();
        inner2.show();

        //外部类访问成员内部类的方式
        memberInnerClass.doing();

    }
}
